package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Date;

@Entity
@Table(name = "applet_qr_code_scan")   // 定义数据库表名
public class QrCodeScan implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;//主键

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "scene_name")
    private String sceneName; //场景名称

    @Column(name = "qr_code_id")
    private String qrCodeId;//二维码Id

    @Column(name = "union_id")
    private String unionId;//会员union_id

    @Column(name = "scene_value")
    private String sceneValue;//场景值
    @Column(name = "good_id")
    private int goodId; //卡券id
    @Column(name = "scan_time")
    private Date scanTime; //扫码时间
    @Column(name = "prize_id")
    private int prizeId; //奖品id
    @Column(name = "associated_keyword")
    private String associatedKeyword;//关联关键字

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    public String getQrCodeId() {
        return qrCodeId;
    }

    public void setQrCodeId(String qrCodeId) {
        this.qrCodeId = qrCodeId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getSceneValue() {
        return sceneValue;
    }

    public void setSceneValue(String sceneValue) {
        this.sceneValue = sceneValue;
    }

    public Date getScanTime() {
        return scanTime;
    }

    public void setScanTime(Date scanTime) {
        this.scanTime = scanTime;
    }

    public int getGoodId() {
        return goodId;
    }

    public void setGoodId(int goodId) {
        this.goodId = goodId;
    }

    public int getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(int prizeId) {
        this.prizeId = prizeId;
    }

    public String getAssociatedKeyword() {
        return associatedKeyword;
    }

    public void setAssociatedKeyword(String associatedKeyword) {
        this.associatedKeyword = associatedKeyword;
    }
}
